We cannot syncronize styles with plain Clutter.Actors, so don't return
them when looking for corner buttons.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1047
if (index < 0)
return null;
+ if (!(children[index] instanceof St.Widget))
+ return null;
+
if (!children[index].has_style_class_name('panel-menu') &&
!children[index].has_style_class_name('panel-button'))
return this._findRightmostButton(children[index]);
if (index == children.length)
return null;
+ if (!(children[index] instanceof St.Widget))
+ return null;
+
if (!children[index].has_style_class_name('panel-menu') &&
!children[index].has_style_class_name('panel-button'))
return this._findLeftmostButton(children[index]);